<html>

<head>
    <title>Vue文本插值</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
</head>

<body>
    <div id="app">
        <p>{{message}}</p><br/>
        <button id="btn" type="submit" v-on:click="update">修改</button><br/>
        <button id="btn" type="submit" @click="back">退回</button><br/>

    </div>
</body>
<script lang="ts">
    new Vue({
        el:"#app",
        data:{
            message:"Hello World!"
        },
        methods:{
            update: function(){
                this.message="你好，世界！";
            },
            back: function(){
                this.message="Hello World!"
            }
        }
    });
</script>
</html>